package com.warm.pump.module.work.service;

import com.warm.pump.module.work.bean.po.gen.WorkDb;
import com.warm.pump.frame.gen.bean.PageBean;

import java.util.List;
import java.util.Map;

/**
 * work_db
 *
 */
public interface IWorkDbService {

	WorkDb queryObject(Long  id);

   WorkDb queryObject(Map<String, Object> map);
	
	List<WorkDb> queryList(Map<String, Object> map);

    PageBean getPageBeanByMap(Map map,int pageNo,int pageSize);

    int queryTotal(Map<String, Object> map);
	
	void save(WorkDb workDb);
	
	void update(WorkDb workDb);

    void delete(Map<String, Object>  map);
	void delete(Long  id);
	
	void deleteBatch(Long[]  ids);

	boolean testConnection(String url,String user,String pass);
}
